﻿package mortal.game.view.signUp.lineOn.item
{
    import Message.Public.*;
    import flash.display.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.item.*;

    public class LineOnItemRollSp extends LineOnRollBase
    {

        public function LineOnItemRollSp()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._cellHei = 72;
            this._speed = 8;
            this.setMask(this._container.x, this._container.y, this._cellHei, this._cellHei);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._cellHei = 25;
            this._speed = 1;
            return;
        }// end function

        public function setValue(param1:Object, param2:Boolean = false) : void
        {
            return;
        }// end function

        override public function getRenders(param1:Array) : void
        {
            var _loc_3:BaseItem = null;
            var _loc_4:SPlayerItem = null;
            var _loc_5:ItemData = null;
            this.disposeRends();
            this._renderArr = [];
            var _loc_2:int = 0;
            while (_loc_2 < param1.length)
            {
                
                _loc_3 = UIFactory.getUICompoment(LineOnRollItem);
                _loc_3.setItemStyle(ItemStyleConst.Big, ImagesConst.ShopItemBg, 6, 6);
                _loc_3.isDragAble = false;
                UIFactory.setObjAttri(_loc_3, 0, this._cellHei * _loc_2 * -1, -1, -1, this._container);
                this._renderArr.push(_loc_3);
                this._container.addChild(_loc_3);
                _loc_4 = new SPlayerItem();
                _loc_4.itemCode = int(param1[_loc_2][1]);
                _loc_4.itemAmount = int(param1[_loc_2][2]);
                _loc_5 = new ItemData(_loc_4);
                _loc_3.itemData = _loc_5;
                _loc_2++;
            }
            super.getRenders(param1);
            return;
        }// end function

        public function getLastItemBm() : BitmapData
        {
            if (this._renderArr == null)
            {
                return null;
            }
            var _loc_1:* = this._renderArr[(this._renderArr.length - 1)];
            return _loc_1.bitmapdata;
        }// end function

    }
}
